package com.io;

import java.io.*;

public class DataOutputStreamDemo01 {

    public static void main(String[] args) throws IOException {
        DataOutputStream dout=new DataOutputStream(new FileOutputStream(
                new File("D:\\dev\\1\\dout.txt")));
//        new DataOutputStream()
        String name="张三";
        int age=20;
        boolean gender=true;
        dout.writeUTF(name);
        dout.writeChar('\t');
        dout.writeInt(age);
        dout.writeBoolean(gender);
        dout.close();
    }
}
